from django.conf.urls import url

from blog import views

urlpatterns = [
    url(r'^$', views.Index.as_view(), name='index'),
    url(r'^blog/(?P<blog_id>\d+)$', views.Blog_detail.as_view(), name='blog'),
    url(r'^tag/$', views.Tag_detail.as_view(), name='tag'),
    url(r'^archive/$', views.Archive.as_view(), name='archive'),
    url(r'^comment/$', views.AddComment.as_view(), name='comment'),
    url(r'^tags/(?P<tag_name>\w+)$', views.TagDetailBlog.as_view(), name='tag_name'),

]
